
function getFileExtension(filename) {
    console.log(((filename.lastIndexOf(".") - 1) >>> 0) + 2);
    console.log(filename.lastIndexOf('.'));
    return filename.slice(((filename.lastIndexOf(".") - 1) >>> 0) + 2);
  }
  console.log(getFileExtension("a.t"));


 